package cn.zjh.basic.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    //关键字查询
    private String keyword;

    private Integer start;

    public Integer getStart() {
        return start;
    }

    public void setStart(Integer start) {
        this.start = start;
    }

    public Integer getBegin(){
        return (this.currentPage - 1)*this.pageSize;
    }
}
